import request from '@/utils/request'

//人员列表
export function getAdminList(query) {
    return request({
        url: 'system/admin/list',
        method: 'get',
        params: query
    })
}

export function getAdminInfo(query) {
    return request({
        url: 'system/admin/self',
        method: 'get',
        params: query
    })
}


export function addAdmin(data) {
    return request({
        url: 'system/admin/add',
        method: 'post',
        data
    })
}

export function updateAdmin(data) {
    return request({
        url: 'system/admin/upInfo',
        method: 'post',
        data
    })
}

export function editAdmin(data) {
    return request({
        url: 'system/admin/edit',
        method: 'post',
        data
    })
}

export function delAdmin(data) {
    return request({
        url: 'system/admin/del',
        method: 'post',
        data
    })
}

